home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 7
/
Aminet 7 - August 1995.iso
/
Aminet
/
text
/
hyper
/
ADtoHT2_1.lha
/
Source.lha
/
MyLib.lha
/
string
/
strncmp.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1995-04-08
|
322 b
|
18 lines
#include <string.h>
/************************************************************************/
int (strncmp)(const char *String1, const char *String2, size_t Size)
{
int Result;
Result=0;
if (Size != 0)
{
while (!(Result=*String1++-*String2) && *String2++ && (--Size != 0))
;
}
return Result;
}